/*
 * Main class: create model, controller & view
 * 
 */
package javaapplication4;

import javaapplication4.model.*;
import javaapplication4.controller.*;
import javaapplication4.view.*;

/**
 *
 * @author mathieubakrim
 */
public class Main {


    public static void main(String[] args) {
        //Model instanciation
        AbstractModel addressBook = new AddressBook();
        
        //Controller creation
        AbstractController controller = new AddressBookController(addressBook);
        
        //Main view
        AdressBookView home = new AdressBookView(controller);
      
        addressBook.addObserver(home);
        
    }
}
